//
//  XYTNetRequest.h
//  XYTPayOrderSystem
//
//  Created by wupeng on 2017/8/23.
//  Copyright © 2017年 wupeng. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
#import "AFHTTPSessionManager.h"
#import "XYTLoginRegisterViewController.h"
#import "MJExtension.h"
#import "XYTBaseModel.h"

#define TimeoutInterval 7

@interface XYTNetRequest : AFHTTPSessionManager

+ (instancetype)sharedManager;

+ (NSURLSessionDataTask *)POST:(NSString *)URLString
                        parameters:(id)parameters
                         isNeedKey:(BOOL)isNeedKey
                           success:(void (^)(id responseObject))success
                           failure:(void (^)(NSString *errorMsg))failure;

+ (NSURLSessionDataTask *)uploadImage:(NSData *)imageData
                          POST:(NSString *)URLString
                    parameters:(id)parameters
                     isNeedKey:(BOOL)isNeedKey
                       success:(void (^)(id responseObject))success
                       failure:(void (^)(NSString *errorMsg))failure;




@end
